package com.htz.agency.mapper;

import com.htz.agency.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {


    @Insert("INSERT INTO `order` (product_id, status, amount, price, client, cphone, message,create_time) " +
            "VALUES (#{order.productId}, #{order.status}, #{order.amount}, #{order.price}, #{order.client}, #{order.cphone}, #{order.message},#{order.createTime})")
    Boolean add(@Param("order") Order order);
}
